﻿using zjxj_repair.Bean;

namespace DeHeng_Mes.Model
{
    public class ConfigModelInit
    {
        // 静态锁对象
        private static readonly object _lock = new object();
        private static List<ConfigModelBean> _readList;

        static ConfigModelInit()
        {
            // 在类的首次引用时初始化 _readPlcList
            _readList = new List<ConfigModelBean>();
        }

        // 静态属性，访问唯一的 List<PlcOrderConfigModel>
        public static List<ConfigModelBean> ReadList
        {
            get
            {
                lock (_lock) // 确保读取时线程安全
                {
                    return _readList;
                }
            }
        }
    }

}
